package com.jade.zsy.base.vo;

import com.jade.bss.base.utils.EntityVo;
import com.jade.zsy.base.common.StatusConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by jianxin.xu on 2017/6/20.
 */
@Data
@ApiModel(value ="商品分类")
public class SkuClassVo extends EntityVo{
    @ApiModelProperty(value = "上级",required = false)
    private int parentId=0;
    @ApiModelProperty(value = "图标",required = false)
    private String photo;
    @ApiModelProperty(value = "名称", required = true)
    private String name;
    @ApiModelProperty(value = "排序")
    private int sequence=0;
    @ApiModelProperty(value = "关键字")
    private String keywords;
    @ApiModelProperty(value = "描述")
    private String description;
    @ApiModelProperty(value = "等级")
    private int level=1;
    @ApiModelProperty(value = "状态",notes = "状态",required = true)
    private int status; /** 状态 **/
    @ApiModelProperty (value = "状态")
    private String statusDesc; /** 状态  0：正常  9：已停用 **/
    @ApiModelProperty(value = "下级分类")
    private List<SkuClassVo> childs = new ArrayList();
    @ApiModelProperty(value = "上级分类")
    private SkuClassVo parent;
    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSequence() {
        return sequence;
    }

    public void setSequence(int sequence) {
        this.sequence = sequence;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public List<SkuClassVo> getChilds() {
        return childs;
    }

    public void setChilds(List<SkuClassVo> childs) {
        this.childs = childs;
    }

    public SkuClassVo getParent() {
        return parent;
    }

    public void setParent(SkuClassVo parent) {
        this.parent = parent;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
    public String getStatusDesc() {
        return StatusConstant.getDesc(status);
    }
}
